package com.example.victorzhang.test;

import android.content.Intent;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by victorzhang on 2017/9/5.
 */

public class BookContent {
    public static class Book{
        public Integer id;
        public String title;
        public String desc;
        public Book(Integer id,String title,String desc){
            this.id=id;
            this.title=title;
            this.desc=desc;
        }
        @Override
        public String toString(){
            return title;
        }
    }
    public static List<Book> ITEMS = new ArrayList<Book>();
    public static Map<Integer,Book> ITEM_MAP = new HashMap<Integer ,Book>();
    static{
        addItem(new Book(1,"啥杀谁的哈四大行撒谎都","傻傻的啥活动id哈岁的和id和啊岁"));
        addItem(new Book(2,"撒打算打算收到阿三阿斯","阿三打算结婚可视对讲哈数据库啊啊啊"));
        addItem(new Book(3,"撒低级卡刷国航客机阿什加啊四就","啊是捷克大使馆会dewdsdd尽快嘎斯度假撒娇看多好"));
    }
    private  static void addItem(Book book){
        ITEMS.add(book);
        ITEM_MAP.put(book.id,book);
    }
}
